const path = require('path') 
const resolve = dir => path.join(__dirname, dir) 
const ignored = ['**/uni_modules/**/*.md', '**/uni_modules/**/package.json','**/uni_modules/*/uniCloud/**/*']
module.exports = {
	configureWebpack() {
		return {
			watchOptions: {
				ignored
			},
			devServer: {
				watchOptions: {
					ignored
				}
			}
		}
	},
	chainWebpack:(config) => {
		config.resolve.alias.set('@static', resolve('static'))  
	}
}
